package com.demo.dune.domain;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * OrderSubmitInput.
 * @author Allen
 * @version 1.0 2022-04-04
 */
@Getter
@Setter
@ToString
public class OrderSubmitInput implements Serializable {
	
	private static final long serialVersionUID = -1284060554279010225L;

	@NotEmpty(message = "orderCode must input")
	@Size(max = 10, message = "orderCode length cannot exceed 10")
	private String orderCode;
	
	@NotEmpty(message = "itemCode must input")
	@Size(max = 10, message = "itemCode length cannot exceed 10")
	private String itemCode;
	
	@NotEmpty(message = "memberCode must input")
	@Size(max = 10, message = "memberCode length cannot exceed 10")
	private String memberCode;

	private long price;
	
	@NotEmpty(message = "currency must input")
	@Size(max = 10, message = "currency length cannot exceed 10")
	private String currency; 

}
